import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        Game game = new Game();
        List<EveryPoker> pokers = game.CreatPoker();//调用完方法记得接受！！！！不然怎么打印
                          //查看该方法的返回值类型！  必须通过类名调用！
//        System.out.println(pokers);
//        game.MassUp(pokers);
        System.out.println(pokers);
        System.out.println(pokers.get(0));//不能没有0下标还是
        game.MassUp(pokers);
        System.out.println(pokers);

        List<List<EveryPoker>> play = game.DrawCard(pokers);//返回类型必须是List<List<EveryPoker>>
//        System.out.println(play);//返回到是2维数组，每个数组下标都得遍历
        for (int i = 0; i < play.size(); i++) {
            System.out.println("第"+(i+1)+ "个人的牌为："+play.get(i));
        }
    }
}